﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_admin : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       if (Request["c"] == null)
       {
           Response.Redirect("http://pompling.co.uk");
           return;
       }
       string userid = Request["c"].ToString();

       PomplingCustomers customer = PomplingCustomers.CustomerSelect(userid);
       if (customer.UserName.Length == 0)
       {
           Response.Redirect("http://pompling.co.uk");
           return;
       }
       string adminLink = "<a href=\"admin_save_address.aspx?c=" + userid + "\" title=\"Add a new property\">Click here.</a>";
       admin_link.InnerHtml = adminLink;
    }
}